using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._ContingentValues
{
    /// <summary>
    /// <para>Delete Field Group</para>
    /// <para>Deletes a field group from a table or feature class.</para>
    /// <para>从表或要素类中删除字段组。</para>
    /// </summary>    
    [DisplayName("Delete Field Group")]
    public class DeleteFieldGroup : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public DeleteFieldGroup()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_target_table">
        /// <para>Target Table</para>
        /// <para>The input geodatabase feature class or table that will have the field group deleted.</para>
        /// <para>将删除字段组的输入地理数据库要素类或表。</para>
        /// </param>
        /// <param name="_name">
        /// <para>Field Group Name</para>
        /// <para>The name of the field group that will be deleted.</para>
        /// <para>要删除的字段组的名称。</para>
        /// </param>
        public DeleteFieldGroup(object _target_table, object _name)
        {
            this._target_table = _target_table;
            this._name = _name;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Delete Field Group";

        public override string CallName => "management.DeleteFieldGroup";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_target_table, _name, _out_table];

        /// <summary>
        /// <para>Target Table</para>
        /// <para>The input geodatabase feature class or table that will have the field group deleted.</para>
        /// <para>将删除字段组的输入地理数据库要素类或表。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Target Table")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _target_table { get; set; }


        /// <summary>
        /// <para>Field Group Name</para>
        /// <para>The name of the field group that will be deleted.</para>
        /// <para>要删除的字段组的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Field Group Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _name { get; set; }


        /// <summary>
        /// <para>Updated Table</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Table")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_table { get; set; }


        public DeleteFieldGroup SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}